import { ref } from 'vue'
import { defineStore } from 'pinia'
interface MenuItem {
    id: number;
    label: string;
    index: string;
    route?: string;
    icon?: Object;
    children?: MenuItem[]; // 添加可选的 children 属性
}
export const mainMode = defineStore('mainMode', () => {
    const menu = ref()
    const setMenu = (params: MenuItem[]) => {
        menu.value = params
    }
    return { menu, setMenu }
})